<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>编辑信息</title>
    <link rel="stylesheet" href="../css/page-health-orderInfo.css"/>
    <link rel="stylesheet" href="../plugins/elementui/index.css"/>
    <link rel="stylesheet" href="../css/page-health-order.css" />
    <script src="../plugins/jquery/dist/jquery.min.js"></script>
    <script src="../plugins/healthmobile.js"></script>
    <script src="../plugins/datapicker/datePicker.js"></script>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/elementui/index.js"></script>
    <link rel="icon" href="../img/asset-favico.ico">
    <script>
        var logintelephone = getUrlParam("logintelephone");

    </script>
</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">
<div id="app" class="app">
    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">预约记录</span>
        <span class="f-right"><i class="icon-more"></i></span>
    </div>
    <!-- 页面内容 -->
    <!--选择日期-->
    <div class="block">
        <span class="demonstration">请选择查询时间段</span>
        <el-date-picker
                v-model="value1"
                type="datetimerange"
                range-separator="至"
                start-placeholder="开始日期"
                format="yyyy-MM-dd"
                value-format="yyyy-MM-dd"
                end-placeholder="结束日期">
        </el-date-picker>
    </div>
        <button @click="findsetmealByDate()" type="button" class="btn order-btn">查询</button>
    <!-- 页面内容 -->
    <div class="contentBox">
        <div class="list-column1">
            <ul class="list">
                <li class="list-item" v-for="setmeal in setmealList">
                    <a class="link-page" :href="'fitness.html?id='+setmeal.id">
                        <img class="img-object f-left" :src="'http://qjn0embm5.hn-bkt.clouddn.com/'+setmeal.img" alt="">
                        <div class="item-body">
                            <h3 class="ellipsis item-title">体检人:{{setmeal.memberName}}</h3>
                            <h4 class="ellipsis item-title">{{setmeal.setmealName}}</h4>
                            <h5 class="ellipsis item-title">点击查看预约信息</h5>

                        </div>
                    </a>
                </li>
            </ul>
        </div>
    </div>

</div>
<script>
    var vue = new Vue({
        el: '#app',
        data: {
            setmealList:[],
            value1: '',
            setmeal: {},//套餐信息
            orderNum: {},//预约人数信息
            orderInfo: {

               // setmealId: id,
               // sex: '1'
            }//预约信息
        },
        methods: {
            findsetmealByDate() {
              //  var date=this.value1;
               axios.post("/memberedit/findsetmealByDate.do?logintelephone="+logintelephone,this.value1).then((response)=>{
                   if (response.data.flag){
                       this.$message.success(response.data.message)
                       this. setmealList=response.data.data
                   }else{
                       this.$message.error(response.data.message)
                   }
               });
            }
        }
    });
</script>
</body>
</html>